﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace QuanLiBongDa.DataAccessLayer
{
    class LoaiBanThangDAO
    {
        public static LoaiBanThangDAO CreateLoaiBanThang()
        {
            return new LoaiBanThangDAO();
        }
        public DataTable TimMLBT_Ten(string tenloai)
        {
            SqlParameter[] par = new SqlParameter[1];
            par[0] = new SqlParameter("TenLBT", tenloai);
            return SQLService.FillTable("TimMLBT_Ten", par);
        }
        public void MaLBT(ComboBox malbt)
        {
            SqlDataReader dr = SQLService.mExecuteReader(SQLService.ReturnAll("LOAIBANTHANG"));
            while(dr.Read())
            {
                malbt.Items.Add(dr["TenLBT"]);
            }
        }
    }
}
